home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / software / Miro_Installer.exe / xulrunner / chrome / toolkit.jar / content / mozapps / extensions / extensions.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-11-06  |  12.8 KB  |  257 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://mozapps/content/extensions/extensions.css"?>
  6. <?xml-stylesheet href="chrome://mozapps/skin/extensions/extensions.css"?>
  7.  
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  10. %brandDTD;
  11. <!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd">
  12. %extensionsDTD;
  13. ]>
  14.  
  15. <window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         id="extensionsManager" windowtype="Extension:Manager"
  18.         orient="vertical" title="&extensions.title;" statictitle="&extensions.title;"
  19.         screenX="10" screenY="10"
  20.         persist="width height screenX screenY sizeMode"
  21.         onload="Startup();" onunload="Shutdown();"
  22.         onclose="return closeWindow(false);">
  23.  
  24.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  25.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  26.   <script type="application/x-javascript" src="chrome://mozapps/content/extensions/extensions.js"/>
  27.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  28.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  29.  
  30.   <stringbundleset id="extensionsSet">
  31.     <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
  32.     <stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
  33.     <stringbundle id="xpinstallStrings" src="chrome://global/locale/xpinstall/xpinstall.properties"/>
  34.   </stringbundleset>
  35.  
  36.   <keyset id="extensionsKeys">
  37.     <key id="key_close"   key="&cmd.close.commandKey;"    modifiers="accel" command="cmd_close" 
  38.          oncommand="gExtensionsViewController.doCommand('cmd_close');"/>
  39.     <key id="key_close2"  keycode="VK_ESCAPE"                               command="cmd_close"
  40.          oncommand="gExtensionsViewController.doCommand('cmd_close');"/>
  41.     <key id="key_about"   key="&cmd.info.commandKey;"     modifiers="accel" command="cmd_about" 
  42.          oncommand="gExtensionsViewController.doCommand('cmd_about');"/>
  43.     <key id="key_options" key="&cmd.options.commandKey;"  modifiers="accel" command="cmd_options"
  44.          oncommand="gExtensionsViewController.doCommand('cmd_options');"/>
  45.   </keyset>
  46.  
  47.   <commandset id="extensionsCommands"
  48.               events="richlistbox-select"
  49.               commandupdater="true"
  50.               oncommandupdate="gExtensionsViewController.onCommandUpdate();"
  51.               oncommand="gExtensionsViewController.doCommand(event.target.id);">
  52.     <command id="cmd_close"/>
  53.     <command id="cmd_options"/>
  54.     <command id="cmd_about"/>
  55.     <command id="cmd_homepage"/>
  56.     <command id="cmd_install"/>
  57.     <command id="cmd_uninstall"/>
  58.     <command id="cmd_update"/>
  59.     <command id="cmd_update_all"/>
  60.     <command id="cmd_enable"/>
  61.     <command id="cmd_disable"/>
  62.     <command id="cmd_movetop"/>
  63.     <command id="cmd_moveup"/>
  64.     <command id="cmd_movedn"/>
  65.     <command id="cmd_useTheme"/>
  66.   </commandset>
  67.   
  68.   <vbox id="contextMenuPalette" hidden="true">
  69.     <menuitem id="menuitem_useTheme" default="true" command="cmd_useTheme"
  70.               label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;"/>
  71.     <menuitem id="menuitem_options" default="true" command="cmd_options"
  72.               label="&cmd.options.label;" accesskey="&cmd.options.accesskey;"/>
  73.     <menuitem id="menuitem_homepage" command="cmd_homepage"
  74.               label="&cmd.homepage.label;" accesskey="&cmd.homepage.accesskey;"/>
  75.     <menuitem id="menuitem_about" command="cmd_about"
  76.               label="&cmd.about.label;" accesskey="&cmd.about.accesskey;"/>
  77.     <menuseparator id="menuseparator_1"/>
  78.     <menuitem id="menuitem_uninstall" command="cmd_uninstall"
  79.               label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;"/>
  80.     <menuitem id="menuitem_update" command="cmd_update"
  81.               label="&cmd.updateAddon.label;" accesskey="&cmd.updateAddon.accesskey;"/>
  82.     <menuitem id="menuitem_enable" command="cmd_enable"
  83.               label="&cmd.enable.label;" accesskey="&cmd.enable.accesskey;"/>
  84.     <menuitem id="menuitem_disable" command="cmd_disable"
  85.               label="&cmd.disable.label;" accesskey="&cmd.disable.accesskey;"/>
  86.     <menuseparator id="menuseparator_2"/>
  87.     <menuitem id="menuitem_moveTop" command="cmd_movetop"
  88.               label="&cmd.moveToTop.label;" accesskey="&cmd.moveToTop.accesskey;"/>
  89.     <menuitem id="menuitem_moveUp" command="cmd_moveup"
  90.               label="&cmd.moveUp.label;" accesskey="&cmd.moveUp.accesskey;"/>
  91.     <menuitem id="menuitem_moveDn" command="cmd_movedn"
  92.               label="&cmd.moveDn.label;" accesskey="&cmd.moveDn.accesskey;"/>
  93.   </vbox>
  94.  
  95.   <popup id="extensionContextMenu" onpopupshowing="return buildContextMenu(event);"/>
  96.  
  97.   <hbox flex="1">
  98.     <richlistbox id="extensionsView" flex="3" context="extensionContextMenu"
  99.                  datasources="rdf:null" persist="last-selected"
  100.                  ondragenter="nsDragAndDrop.dragEnter(event, gExtensionsDNDObserver);"
  101.                  ondragover="nsDragAndDrop.dragOver(event, gExtensionsDNDObserver);"
  102.                  ondragdrop="nsDragAndDrop.drop(event, gExtensionsDNDObserver);"
  103.                  ondblclick="onViewDoubleClick(event);">
  104.       <template>
  105.         <rule>
  106.           <conditions>
  107.             <content uri="?uri"/>
  108.             <member container="?uri" child="?extension"/>
  109.             <triple subject="?extension"
  110.                     predicate="http://www.mozilla.org/2004/em-rdf#name"
  111.                     object="?name"/>
  112.             <triple subject="?extension"
  113.                     predicate="http://www.mozilla.org/2004/em-rdf#version"
  114.                     object="?version"/>
  115.             <triple id="typeCondition" subject="?extension"
  116.                     predicate="http://www.mozilla.org/2004/em-rdf#type"
  117.                     object="2" parsetype="Integer"/>
  118.           </conditions>
  119.           <bindings>
  120.             <binding subject="?extension"
  121.                      predicate="http://www.mozilla.org/2004/em-rdf#iconURL"
  122.                      object="?icon"/>
  123.             <binding subject="?extension"
  124.                      predicate="http://www.mozilla.org/2004/em-rdf#previewImage"
  125.                      object="?previewImage"/>
  126.             <binding subject="?extension"
  127.                      predicate="http://www.mozilla.org/2004/em-rdf#optionsURL"
  128.                      object="?options-url"/>
  129.             <binding subject="?extension"
  130.                      predicate="http://www.mozilla.org/2004/em-rdf#aboutURL"
  131.                      object="?about-url"/>
  132.             <binding subject="?extension"
  133.                      predicate="http://www.mozilla.org/2004/em-rdf#updateURL"
  134.                      object="?update-url"/>
  135.             <binding subject="?extension"
  136.                      predicate="http://www.mozilla.org/2004/em-rdf#disabled"
  137.                      object="?disabled"/>
  138.             <binding subject="?extension"
  139.                      predicate="http://www.mozilla.org/2004/em-rdf#compatible"
  140.                      object="?compatible"/>
  141.             <binding subject="?extension"
  142.                      predicate="http://www.mozilla.org/2004/em-rdf#homepageURL"
  143.                      object="?homepage-url"/>
  144.             <binding subject="?extension"
  145.                      predicate="http://www.mozilla.org/2004/em-rdf#description"
  146.                      object="?description"/>
  147.             <binding subject="?extension"
  148.                      predicate="http://www.mozilla.org/2004/em-rdf#displayDescription"
  149.                      object="?displayDescription"/>
  150.             <binding subject="?extension"
  151.                      predicate="http://www.mozilla.org/2004/em-rdf#locked"
  152.                      object="?locked"/>
  153.             <binding subject="?extension"
  154.                      predicate="http://www.mozilla.org/2004/em-rdf#internalName"
  155.                      object="?internalName"/>
  156.             <binding subject="?extension"
  157.                      predicate="http://www.mozilla.org/2004/em-rdf#downloadURL"
  158.                      object="?downloadURL"/>
  159.             <binding subject="?extension"
  160.                      predicate="http://www.mozilla.org/2004/em-rdf#state"
  161.                      object="?state"/>
  162.             <binding subject="?extension"
  163.                      predicate="http://www.mozilla.org/2004/em-rdf#progress"
  164.                      object="?progress"/>
  165.             <binding subject="?extension"
  166.                      predicate="http://www.mozilla.org/2004/em-rdf#status"
  167.                      object="?status"/>
  168.             <binding subject="?extension"
  169.                      predicate="http://www.mozilla.org/2004/em-rdf#hidden"
  170.                      object="?hidden"/>
  171.             <binding subject="?extension"
  172.                      predicate="http://www.mozilla.org/2004/em-rdf#opType"
  173.                      object="?opType"/>
  174.             <binding subject="?extension"
  175.                      predicate="http://www.mozilla.org/2004/em-rdf#incompatibleUpdate"
  176.                      object="?incompatibleUpdate"/>
  177.             <binding subject="?extension"
  178.                      predicate="http://www.mozilla.org/2004/em-rdf#availableUpdateURL"
  179.                      object="?available-update-url"/>
  180.             <binding subject="?extension"
  181.                      predicate="http://www.mozilla.org/2004/em-rdf#updateable"
  182.                      object="?updateable"/>
  183.           </bindings>
  184.           <action>
  185.             <!-- XXXben - we could really use a variety of different templates
  186.                           here to make each element not be so heavy. -->
  187.             <extension uri="?extension"
  188.                        image="?icon" name="?name" version="?version" 
  189.                        description="?displayDescription" creator="?creator"
  190.                        disabled="?disabled" locked="?locked" 
  191.                        compatible="?compatible" hidden="?hidden"
  192.                        optionsURL="?options-url" homepageURL="?homepage-url"
  193.                        aboutURL="?about-url" updateURL="?update-url"
  194.                        availableUpdateURL="?available-update-url"
  195.                        previewImage="?previewImage" internalName="?internalName"
  196.                        opType="?opType" downloadURL="?downloadURL"
  197.                        state="?state" progress="?progress" status="?status"
  198.                        incompatibleUpdate="?incompatibleUpdate"
  199.                        updateable="?updateable"/>
  200.           </action>
  201.         </rule>
  202.       </template>
  203.     </richlistbox>
  204.     <vbox flex="5" id="themePreviewArea" class="themePreviewArea" hidden="true">
  205.       <deck id="previewImageDeck" flex="1">
  206.         <vbox id="noThemeSelected" pack="center" align="center">
  207.           <label class="previewText">&previewNoThemeSelected.label;</label>
  208.         </vbox>
  209.         <vbox id="noPreviewImage" pack="center" align="center">
  210.           <label class="previewText">&previewNoPreviewImage.label;</label>
  211.         </vbox>
  212.         <vbox id="previewImageContainer" align="center" pack="center"
  213.               style="overflow: auto;">
  214.           <description>
  215.             <image id="previewImage"/>
  216.           </description>
  217.         </vbox>
  218.       </deck>
  219.     </vbox>
  220.   </hbox>
  221.   <hbox>
  222.     <hbox id="commandBar" flex="1" align="center">
  223.       <hbox>
  224.         <button id="installButton"
  225.                 label="&cmd.install.label;" accesskey="&cmd.install.accesskey;" tooltiptext="&cmd.install.tooltip;" 
  226.                 command="cmd_install"/>
  227.         <separator class="commandBarSeparator"/>
  228.         <button id="uninstallButton" 
  229.                 label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;" tooltiptext="&cmd.uninstall.tooltip;" 
  230.                 command="cmd_uninstall"/>
  231.         <separator class="commandBarSeparator"/>
  232.         <button id="optionsButton" command="cmd_options"
  233.               label="&cmd.options.label;" accesskey="&cmd.options.accesskey;" tooltiptext="&cmd.options.tooltip;"/>
  234.         <button id="useThemeButton" hidden="true"
  235.                 label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;" tooltiptext="&cmd.useTheme.tooltip;"
  236.                 command="cmd_useTheme"/>
  237.       </hbox>
  238.       <spacer flex="1"/>
  239.  
  240.       <separator class="commandBarSeparator"/>
  241.       <button id="updateButton" 
  242.               label="&cmd.update.label;" accesskey="&cmd.update.accesskey;" tooltiptext="&cmd.update.tooltip;"
  243.               command="cmd_update_all"/>
  244.       <separator class="commandBarSeparator"/>
  245.       <label id="getMore" class="text-link"
  246.              valuethemes="&getMoreThemes.label;"
  247.              valueextensions="&getMoreExtensions.label;"
  248.              tooltiptextthemes="&getMoreThemes.tooltip;"
  249.              tooltiptextextensions="&getMoreExtensions.tooltip;"/>
  250.     </hbox>
  251.     
  252.     <resizer id="windowResizer" dir="bottomright"/>
  253.   </hbox>  
  254.  
  255. </window>
  256.  
  257.